#@layout("会员管理")
#define main()
<body class="timo-layout-page">
    <div class="layui-card">
        <div class="layui-card-header timo-card-header">
            <span><i class="fa fa-bars"></i> 会员管理</span>
            <i class="layui-icon layui-icon-refresh refresh-btn"></i>
        </div>
        <div class="layui-card-body">
            <div class="layui-row timo-card-screen">
                <div class="pull-left layui-form-pane timo-search-box">
                	<div class="layui-inline">
                        <label class="layui-form-label">状态</label>
                        <div class="layui-input-block timo-search-status">
                            <select class="timo-search-select" name="wechatMember.status" >
                            	<option value="">选择</option>
                            	#for(item : joyDict.getDictList('status'))
                            	<option value="#(item.dictValue)" #if(wechatMember.status!=null && item.dictValue==(wechatMember.status.toString())) selected="selected" #end >#(item.dictName)</option>
                            	#end
                            </select>
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">会员昵称</label>
                        <div class="layui-input-block">
                            <input type="text" name="wechatMember.nickName" value="#(wechatMember.nickName ??)" placeholder="请输入会员名称" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <button class="layui-btn timo-search-btn">
                            <i class="fa fa-search"></i>
                        </button>
                    </div>
                </div>
                <div class="pull-right screen-btn-group">
                    <div class="btn-group">
                        <button class="layui-btn">操作<span class="caret"></span></button>
                        <dl class="layui-nav-child layui-anim layui-anim-upbit">
                            <dd><a class="ajax-status" href="#(ctxAd)/member/status/1">启用</a></dd>
                            <dd><a class="ajax-status" href="#(ctxAd)/member/status/0">禁用</a></dd>
                        </dl>
                    </div>
                </div>
            </div>
            <table class="layui-table timo-table">
                <thead>
                <tr>
                    <th class="timo-table-checkbox"><label class="timo-checkbox"><input type="checkbox"><i class="layui-icon layui-icon-ok"></i></label></th>
                    <th class="sortable" data-field="headimgUrl">头像</th>
                    <th class="sortable" data-field="nickName">会员昵称</th>
                    <th class="sortable" data-field="sex">性别</th>
                    <th class="sortable" data-field="city">城市</th>
                    <th class="sortable" data-field="avb_amt">账户可用</th>
                    <!-- <th class="sortable" data-field="frz_amt">账户冻结</th> -->
                    <th class="sortable" data-field="rec_name">代理</th>
                    <th class="sortable" data-field="subscribe">关注状态</th>
                    <th class="sortable" data-field="status">会员状态</th>
                    <th class="sortable" data-field="createTime">关注时间</th>
                </tr>
                </thead>
                <tbody>
                #for(item : page.list)
	                <tr>
	                	<td><label class="timo-checkbox"><input type="checkbox" value="#(item.id)"><i class="layui-icon layui-icon-ok"></i></label></td>
	                    <td><img alt="图像" src="#(item.headimgUrl)"></td>
	                    <td>#(item.nickName)</td>
	                    <td>#if(item.sex ??)#(joyDict.getDictLabel(item.sex.toString(),'sex','未知'))#end</td>
	                    <td>#(item.city)</td>
	                    <td>#(item.avb_amt)</td>
	                    <!-- <td>#(item.frz_amt)</td> -->
	                    <td>#if(item.rec_type ??)#(joyDict.getDictLabel(item.rec_type.toString(),'recommend_level','未代理'))#end</td>
	                    <td>#if(item.subscribe ??)#(joyDict.getDictLabel(item.subscribe.toString(),'subscribe_status','未知'))#end</td>
	                    <td>#(joyDict.getDictLabel(item.status.toString(),'status','未知'))</td>
	                    <td>#date(item.createTime, "yyyy-MM-dd HH:mm:ss")</td>
	                </tr>
                #end
                </tbody>
            </table>
            <!-- page -->
            #include("../../common/page.html", url=pageUrl)
            <!-- page end -->
        </div>
    </div>
</body>
#end